package com.spera.shopoa.util;

import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Date;
import java.util.GregorianCalendar;

import com.spring.security.core.util.ApplicationUtils;
import com.spring.security.core.util.UDate;

public class Test {

	public static void main(String[] args) {
//		Date dat=new Date(59734);  
//        GregorianCalendar gc = new GregorianCalendar();   
//        gc.setTime(dat);  
//        java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("hh:mm:ss");  
//        String sb=format.format(gc.getTime());  
//        System.out.println(sb); 
		
//		System.out.println(new Date().getTime()+""+(10+(int)(Math.random()*90)));
//		System.out.println(new Date().getTime());
//		System.out.println((10+(int)(Math.random()*90)));
		URL url;
		try {
			url = new URL("http://img.ys7.com/group2/M00/02/6F/CmGCBVdFE_yAGdltAASbbbsMWig480.jpg");
			HttpURLConnection httpUrl = (HttpURLConnection) url.openConnection();  
			httpUrl.connect(); 
			System.out.println(httpUrl.getHeaderField("Content-Length"));
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
